package io.renren.modules.crud.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencent.common.pojo.Result;
import io.renren.common.utils.PageUtils;
import io.renren.modules.crud.entity.RegisterVerify;
import io.renren.modules.crud.entity.UsersEntity;

import java.util.Map;

/**
 * 个人信息
 *
 * @author syh
 * @email sunlightcs@gmail.com
 * @date 2022-05-19 09:40:52
 */
public interface UsersService extends IService<UsersEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Result<UsersEntity> getAmount(Integer userId);

    Result getVerifyCode(String phone);

    Result register(RegisterVerify registerVerify);

    Result loginSSO(String username, String password);

    Result login(UsersEntity usersEntity);

    void updateUserIntegral(Integer userId);

    Result getUserIntegral(Integer userId);

    Result<UsersEntity> userById(Integer userId);

    Result getUserInfo(String userId);

    String uploadImg(MultipartFile file);

    Result changeHeadImg(UsersEntity usersEntity);

    Result changePhone(UsersEntity usersEntity);

    Result changeNickName(UsersEntity usersEntity);

    Result getUserSingInDays(Integer userId);

    Result cliSign(Integer userId);

    Result<List<CouponEntity>> getCoupon(Integer userId);

    Result idCardVerify(Integer userId);


}

